{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "123\n",
      "<class 'int'>\n",
      "<class 'str'>\n",
      "<class 'int'>\n",
      "<class 'str'>\n"
     ]
    }
   ],
   "source": [
    "# python 强类型编程语言\n",
    "\n",
    "print(int(123.456))\n",
    "\n",
    "abc = 123\n",
    "print(type(abc))\n",
    "\n",
    "abc = \"123\"\n",
    "print(type(abc))\n",
    "\n",
    "abc = \"123\"\n",
    "xyz = int(abc)\n",
    "print(type(xyz))\n",
    "\n",
    "mnt = str(xyz)\n",
    "print(type(mnt))\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
